package com.itjin.model.domain.vo;

import lombok.Data;
import lombok.Builder;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import java.util.Date;
import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ReportedPostVO {
  /**
   * 帖子基本信息
   */
  private Integer postId;
  private String title;
  private String content;
  private Integer authorId;
  private String authorName;
  private String authorAvatar;
  private Date createTime;
  private Integer reportCount;

  /**
   * 举报信息列表
   */
  private List<ReportInfo> reports;

  @Data
  @Builder
  @NoArgsConstructor
  @AllArgsConstructor
  public static class ReportInfo {
    private Integer reportId;
    private Integer reporterId;
    private String reporterName;
    private String reporterAvatar;
    private String reason;
    private Date reportTime;
    private Integer status; // 举报状态：0-已处理，1-待处理
  }
}